function countNum(id,type){
	var count = $('#'+id).val();
	if(type=='del'){
		count--;
		if(count<=0){
			count = 0;
		}
	}else{
		count++;
	}
	$('#'+id).val(count);
}

function selectAll(obj){
	var select = document.getElementsByName("good");
	for(var i=0;i<select.length;i++){
		select[i].checked = obj.checked;
	}
}

function makeBill(){
	window.location.href = "#/makebill";
}
